package com.yenlien.traceyun.plant;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.gson.GsonAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

import javax.sql.DataSource;

/**
 * 种植
 *
 * @author master yi
 */
@EnableFeignClients
@EnableDiscoveryClient
@SpringBootApplication(scanBasePackages = "com.yenlien.traceyun", exclude = GsonAutoConfiguration.class)
@EnableScheduling //开启定时任务
@EnableAsync
public class PlantApplication implements CommandLineRunner {

    public static void main(String[] args) {
        SpringApplication.run(PlantApplication.class, args);
    }

    @Autowired
    DataSource dataSource;

    // 查看使用的数据库连接池
    @Override
    public void run(String... args){
        System.out.println("DATASOURCE = " + dataSource);
    }

    // 西昌葡萄萤石云  18123153832   yuanlian12345..      https://open.ys7.com/
    // 果园二期  18030508642   y123123      https://open.ys7.com/
    // yenlien.com   cd3sqy   3sqy2017    https://www.aliyun.com/    http://www.028icp.com
    // 岳池茂县彭州ECS ：  47.104.12.86  root  Yinwan!001     https://portal.qiniu.com/home  15308178600   123YINwan...
    // 德格乐橙云 13056482171  Ylkj123456  https://oauth.imou.com/
    // 高德天气预报   key： fc496c9eee0ef60df95a36da9df5e7b5

}
